package com.lagou.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * @author liuyj
 * @Title: Configuration
 * @create 2020-05-27 15:20
 * @ProjectName IPersistence
 * @Description:  存放sqlMapConfig.xml解析出来的内容
 */
public class Configuration {
    //存放数据库配置信息，从sqlMapConfig.xml中解析出来
    private DataSource dataSource;

    //存放Mapper.xml中解析出来的内容，key是statementId
    private Map<String,MappedStatement> mappedStatementMap=new HashMap<String, MappedStatement>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}
